Creates a random symbol pattern whose length is equal to the parameter length (or the length of the pattern in the place of length). The random symbols are picked from the list of possibilities that can be any symbol pattern. Note that each symbol in the possibilities list has an equal possibility of being choosen. By adjusting the incidence of particular symbols in the pattern the probabilities may be controlled. This expression creates a random pattern of 8 symbols.
(gen-random 0.5 8 '(a a a a b c = = = =))
--> (b b a = = = = b)
This creates a random pattern whose length is the same as the pattern generated by gen-fibonacci.
(setq template (gen-fibonacci 5 'a 'b))
--> (a b a a b a b a a b a a b)
(gen-random 0.5 template '(a a a a b c = = = =))
--> (a a c c = b b a = = = = b)
Here the probabilities are derived from a pattern generated by gen-fibonacci-trans.
(gen-random 0.6 template (gen-fibonacci-trans 5 'a '=))